/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_newuser")
//@NamedQueries({@NamedQuery(name = "TTjNewUser.findAll", query = "SELECT t FROM TTjNewUser t"), @NamedQuery(name = "TTjNewUser.findById", query = "SELECT t FROM TTjNewUser t WHERE t.id = :id"), @NamedQuery(name = "TTjNewUser.findByCyear", query = "SELECT t FROM TTjNewUser t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjNewUser.findByCmonth", query = "SELECT t FROM TTjNewUser t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjNewUser.findByCday", query = "SELECT t FROM TTjNewUser t WHERE t.cday = :cday"),  @NamedQuery(name = "TTjNewUser.findByMpaltform", query = "SELECT t FROM TTjNewUser t WHERE t.mpaltform = :mpaltform"),@NamedQuery(name = "TTjNewUser.findByMagent", query = "SELECT t FROM TTjNewUser t WHERE t.magent = :magent"), @NamedQuery(name = "TTjNewUser.findByMarea", query = "SELECT t FROM TTjNewUser t WHERE t.marea = :marea"), @NamedQuery(name = "TTjNewUser.findByComment", query = "SELECT t FROM TTjNewUser t WHERE t.comment = :comment")})
public class TTjNewUser implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "cday")
    private String cday;
    @Column(name = "mpaltform")
    private String mpaltform;
    @Column(name = "magent")
    private String magent;
    @Column(name = "marea")
    private String marea;
    @Column(name = "comment")
    private String comment;
    
    private Integer usernumber;
    
    public TTjNewUser() {
    }

    public TTjNewUser(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public String getCday() {
        return cday;
    }

    public void setCday(String cday) {
        this.cday = cday;
    }



    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjNewUser)) {
            return false;
        }
        TTjNewUser other = (TTjNewUser) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjNewUser[id=" + id + "]";
    }

	/**
	 * mpaltform
	 *
	 * @return  the mpaltform
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getMpaltform() {
		return mpaltform;
	}

	/**
	 * @param mpaltform the mpaltform to set
	 */
	public void setMpaltform(String mpaltform) {
		this.mpaltform = mpaltform;
	}


	/**
	 * magent
	 *
	 * @return  the magent
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getMagent() {
		return magent;
	}

	/**
	 * @param magent the magent to set
	 */
	public void setMagent(String magent) {
		this.magent = magent;
	}

	/**
	 * marea
	 *
	 * @return  the marea
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getMarea() {
		return marea;
	}

	/**
	 * @param marea the marea to set
	 */
	public void setMarea(String marea) {
		this.marea = marea;
	}

	/**
	 * comment
	 *
	 * @return  the comment
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * usernumber
	 *
	 * @return  the usernumber
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public Integer getUsernumber() {
		return usernumber;
	}

	/**
	 * @param usernumber the usernumber to set
	 */
	public void setUsernumber(Integer usernumber) {
		this.usernumber = usernumber;
	}

}
